import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useModelStore = defineStore('model', () => {
  //创建的测量对象集合
  const createModelData = ref([])
  //判读是否有创建的测量对象
  const hasCreateModelData = computed(() => createModelData.value.length > 0)

  return {
    createModelData,
    hasCreateModelData,
  }
})
